
typedef unsigned int Item;
class Stack {
    private:
    enum {MAX_ITEM = 3};
    Item items[MAX_ITEM];
    unsigned int totalNum;

    public:
    Stack():totalNum(0){
        
    }
    bool isFull() const;
    bool isEmpty() const;
    bool push(const Item &item);
    void pop( Item &item);
    void display();
};
